<?php use application\Comm\Func;?>
<link rel="stylesheet" href="<?php echo Func::staticUrl('css/consulting_content.css?v=20170608') ?>">

<!--头部-->
<div class="consulting wrap">
    <div class="nav_link">
        <a href="<?=Func::createUrl('site/index') ?>">首页</a>
        >
        <a href="<?=Func::createUrl('decorate/index') ?>">家居小知识</a>
        >
        <a href="javascript:void(0);"><?=$info['name'] ?></a>
    </div>
    <div class="box">
        <div class="box_l">
            <h3><?=$info['name'] ?></h3>
            <div class="datas">
                <span>发布日期:<?=$info['create_time'] ?> </span>
                <span class="brand">来源：皮阿诺</span>
                <i onclick="consule();"></i>
            </div>
            <div class="content">
                <div class="tit">
                    <i>导读</i>
                    <p class="main_body"><?=$info['description'] ?></p>
                    <div class="keybox">
                        <div class="keywords">
                            <span>关键词：</span>
                            <span class="category">
                            <?php foreach ($tag_list as $k => $v){?>
                                <a><?=$v['name']?></a>
                            <?php }?>
                            </span>
                        </div>
                        <div class="share">
                            <span>分享到：</span>
                            <div class="share_btn">
                                <div class="bdsharebuttonbox">
                                    <a href="#" class="bds_more" data-cmd="more"></a>
                                    <a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a>
                                    <a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a>
                                    <a href="#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博"></a>
                                    <a href="#" class="bds_renren" data-cmd="renren" title="分享到人人网"></a>
                                    <a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a>
                                </div>
                                <script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{},"image":{"viewList":["qzone","tsina","tqq","renren","weixin"],"viewText":"分享到：","viewSize":"16"},"selectShare":{"bdContainerClass":null,"bdSelectMiniList":["qzone","tsina","tqq","renren","weixin"]}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="core">
                 <?=$info['content'] ?>  
                </div>
            </div>
        </div>
        <div class="box_r">
            <div class="floor1">
                <?php  include_once dirname(__FILE__).'/../common/apply.php'; ?>
            </div>
            <div class="floor2">
                <div class="tit">
                    <i></i>
                    <span>热门推荐</span>
                    <a href="<?=Func::createUrl('product/index') ?>">更多》</a>
                </div>
                <div class="floor2_box">
                    <ul>
                    <?php foreach ($hot_data as $hdkey => $hdval){?>
                        <li>
                            <a href="<?=Func::createUrl('product/view',['id'=>$hdval['id']]) ?>">
                                <img src="<?= $hdval['thumb']?>">
                                <p><?= $hdval['name']?> </p>
                            </a>
                        </li>
                    <?php }?>
                    </ul>
                </div>
            </div>
            <div class="floor3">
                <div class="tit">
                    <i></i>
                    <span>热门文章</span>
                    <a href="<?=Func::createUrl('decorate/index')?>">更多》</a>
                </div>
                <div class="article">
                    <ul>
                    
                      <?php $i = 1; foreach ($hot_list as $hkey => $hval){?>
	                        <li <?php if ($i < 4) echo 'class="act"'?>>
	                            <span><?=$i?></span>
	                            <a href="<?=Func::createUrl('decorate/view',['id'=>$hval['id']]) ?>"><?=$hval['name'] ?></a>
	                        </li>
                      <?php $i++;}?>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>
<!--尾部-->

